package io.renren.modules.nuaa.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.common.constant.Constant;
import io.renren.modules.nuaa.dao.TAboutDao;
import io.renren.modules.nuaa.dto.TAboutDTO;
import io.renren.modules.nuaa.entity.TAboutEntity;
import io.renren.modules.nuaa.service.TAboutService;
import io.renren.modules.security.user.SecurityUser;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 单页
 *
 * @author whc 15953295779@126.com
 * @since 3.0 2023-10-31
 */
@Service
public class TAboutServiceImpl extends CrudServiceImpl<TAboutDao, TAboutEntity, TAboutDTO> implements TAboutService {

    @Override
    public QueryWrapper<TAboutEntity> getWrapper(Map<String, Object> params){
        QueryWrapper<TAboutEntity> wrapper = new QueryWrapper<>();

        String title = (String) params.get("title");

        if(StringUtils.isNotBlank(title)){
            wrapper.like("title",title);
        }
        return wrapper;
    }


}